Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(queue): Fix SqlQueue#doContainsMessage to handle queues with more than 100 items #4648

Merged
merged 2 commits into from
Mar 11, 2024
Merged

fix(queue): Fix SqlQueue#doContainsMessage to handle queues with more than 100 items #4648

merged 2 commits into from
Mar 11, 2024

Conversation

kbatalin
Copy link
Contributor

SqlQueue#doContainsMessage doesn't process more than 1 batch because of an incorrect loop inside. When the last element in the batch is processed (ResultSet#next returns false), the following invocation of ResultSet#getRow will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments. But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

…more than 100 items

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR
@kbatalin kbatalin marked this pull request as ready for review February 20, 2024 21:48
@kbatalin kbatalin changed the title fix(queue): Fix ZombieExecutionCheckingAgent to handle queues with more than 100 items fix(queue): Fix ZombieExecutionCheckingAgent for SqlQueue to handle queues with more than 100 items Mar 3, 2024
@kbatalin kbatalin changed the title fix(queue): Fix ZombieExecutionCheckingAgent for SqlQueue to handle queues with more than 100 items fix(queue): Fix SqlQueue#doContainsMessage to handle queues with more than 100 items Mar 10, 2024
Copy link
Member

@jasonmcintosh jasonmcintosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE. And thanks for the tests!!

@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for merge label Mar 11, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Mar 11, 2024
@mergify mergify bot merged commit 0a52909 into spinnaker:master Mar 11, 2024
4 checks passed
@jasonmcintosh
Copy link
Member

@Mergifyio backport release-1.33.x release-1.32.x release-1.31.x

Copy link
Contributor

mergify bot commented Mar 23, 2024

backport release-1.33.x release-1.32.x release-1.31.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Mar 23, 2024
…more than 100 items (#4648)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <[email protected]>
(cherry picked from commit 0a52909)
mergify bot pushed a commit that referenced this pull request Mar 23, 2024
…more than 100 items (#4648)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <[email protected]>
(cherry picked from commit 0a52909)
mergify bot pushed a commit that referenced this pull request Mar 23, 2024
…more than 100 items (#4648)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <[email protected]>
(cherry picked from commit 0a52909)
mergify bot added a commit that referenced this pull request Mar 26, 2024
…more than 100 items (#4648) (#4683)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <[email protected]>
(cherry picked from commit 0a52909)

Co-authored-by: Kirill Batalin <[email protected]>
mergify bot added a commit that referenced this pull request Mar 26, 2024
…more than 100 items (#4648) (#4685)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <[email protected]>
(cherry picked from commit 0a52909)

Co-authored-by: Kirill Batalin <[email protected]>
mergify bot added a commit that referenced this pull request Mar 26, 2024
…more than 100 items (#4648) (#4684)

`SqlQueue#doContainsMessage` doesn't process more than 1 batch because of an incorrect loop inside.
When the last element in the batch is processed (`ResultSet#next` returns `false`), the following invocation of `ResultSet#getRow` will return 0. No matter how many rows were processed before.

Basically, this PR is just a copy of #4184 with addressed comments.
But #4184 is abandoned so opened this one. Kudos to Ivor for the original PR

Co-authored-by: Jason <[email protected]>
(cherry picked from commit 0a52909)

Co-authored-by: Kirill Batalin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.34
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants